package com.sgs.notes.web.controller;

import com.sgs.notes.domain.dto.ReportSimplifyDTO;
import com.sgs.notes.domain.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Tim_Tian
 */
@RestController
@RequestMapping("/notes/report")
public class ReportController {
    @Autowired
    private ReportService reportService;

    @RequestMapping(value = "getReportSimplify/{reportNo}", method = RequestMethod.GET)
    public ReportSimplifyDTO getReportSimplify(@PathVariable("reportNo") String reportNo) {
        return reportService.getReportSimplify(reportNo);
    }
}
